<?php

/*
 * 权限数据
 * autocoding:DefinedFile代码生成
 * 格式为 mvc.actionfunc:table:fields,其中mvc表示m=模型,v=视图,c=控制器,actionfunc=list,edit,delete,setfield,json-lv-list,json-list,json-item,json-delete
 * 只能粗略地生成代码文件，具体还要修改部分代码后才能使用.
 * @since 1.0 2014-7-11 by sutroon
 *      1.1 2014-9-3 by sutroon 新增与autocoding关联的字段autocoding
 * @remark 佩服俺自己!
 */
return array(
    array(
        'name' => '系统管理', // 模块菜单 - 系统管理
        'url' => '?s=Index/index/mmid/{0}/anavid/3,12.html',
        'sub' => array(
            array(
                'name' => '系统管理', // 系统管理 - 系统管理
                'url' => '',
                'sub' => array(
                    array('name' => '租户管理', 'url' => '?s=User/admin_list.html', 'autocoding' => 'vc.list:tuser_member:id,siteID,userName,blance,maxTask,outFeeRate,inFeeRate,allowOverdraftAmount,state,createdTime', 'sub' => array(
                            array('name' => '编辑租户', 'url' => '?s=User/admin_edit/id/{key}.html', 'autocoding' => 'vc.edit:tuser_member:id,siteID,userName,blance,maxTask,keepCallHistoryDays,keepRecordHistoryDays,outFeeRate,inFeeRate,allowOverdraftAmount,state', 'ismenu' => '0'),
                            array('name' => '删除租户', 'url' => '?s=User/admin_delete/id/{key}.html', 'autocoding' => 'c.delete:tuser_member:id', 'ismenu' => '0'),
                            array('name' => '租户充值', 'url' => '?s=User/admin_recharge/id/{key}.html', 'autocoding' => 'c.edit:tuser_member:id, blance', 'ismenu' => '0'),
                            array('name' => '重置密码', 'url' => '?s=User/admin_password_reset/id/{key}.html', 'autocoding' => 'c.setfiled:tuser_member:id, password', 'ismenu' => '0'),
                        )
                    ),
                    array('name' => '费率管理', 'url' => '?s=PayFee/'),
                    array('name' => '日结账单', 'url' => '?s=CtiStatics/day_bill.html'),
                    array('name' => '充值查询', 'url' => '?s=Recharge/'),
                )
            ),
            array(
                'name' => '系统配置', // 系统管理 - 系统配置
                'url' => '',
                'sub' => array(
                    array('name' => '分机管理', 'url' => '?s=CtiExtension/extension_list.html'),
                    array('name' => '中继管理', 'url' => '?s=CtiTrunk/'),
                    array('name' => '语音管理', 'url' => '?s=VocFile/'),
                    array('name' => '语音菜单', 'url' => '?s=VoiceMenu'),
                    array('name' => '队列管理', 'url' => '?s=AcdNo/', 'sub' => array(
                            array('name' => '队列管理-新增队列', 'url' => '', 'ismenu' => '0', 'enable' => false),
                            array('name' => '队列管理-删除队列', 'url' => '', 'ismenu' => '0', 'enable' => false),
                        )
                    ),
                    array('name' => '工号管理', 'url' => '?s=CtiExtension/seat_list.html'),
                    array('name' => '工作日设置', 'url' => '?s=WorkDay/'),
                )
            ),
            array(
                'name' => '自动登录', // 系统管理 - 自动登录
                'url' => '',
                'sub' => array(
                    array('name' => '自动登录', 'url' => '?s=AutoDuty/rule_list.html', 'sub' => array(
                            array('name' => '自动登录-新增项目', 'url' => '', 'ismenu' => '0', 'enable' => false),
                            array('name' => '自动登录-删除项目', 'url' => '', 'ismenu' => '0', 'enable' => false),
                        )),
                )
            ),
            array(
                'name' => '备份恢复', // 系统管理 - 备份恢复
                'url' => '',
                'sub' => array(
                    array('name' => '数据备份', 'url' => '?s=XTool/data_backup.html'),
                    array('name' => '数据清理', 'url' => '?s=XTool/data_clear.html'),
                    array('name' => '系统测试', 'url' => '?s=CtiTester/'),
                )
            )
        )
    ),
    array(
        'name' => '外呼管理', // 模块菜单 - 外呼管理
        'url' => '?s=Index/index/mmid/{0}/anavid/22.html',
        'sub' => array(
            array(
                'name' => '外呼任务', // 外呼管理 - 外呼任务
                'url' => '',
                'sub' => array(
                    array('name' => '外呼模式', 'url' => '?s=CtiTaskStrategy/'),
                    array('name' => '添加号码', 'url' => '?s=CtiTask/add_number.html'),
                    array('name' => '导入号码', 'url' => '?s=CtiTask/import_number.html'),
                    array('name' => '生成号码', 'url' => '?s=CtiTask/generate_number.html'),
                    array('name' => '号码生成历史', 'url' => '?s=CtiTask/task_history_of_generate.html'),
                    array('name' => '呼出时段', 'url' => '?s=CtiTask/timespan_list.html'),
                    array('name' => '外呼限制', 'url' => '?s=CtiTask/limit_list.html'),
                )
            ),
        )
    ),
    array(
        'name' => '统计分析', // 模块菜单 - 统计分析
        'url' => '?s=Index/index/mmid/{0}/anavid/31,36.html',
        'sub' => array(
            array(
                'name' => '账单查询', // 统计分析 - 账单查询
                'url' => '',
                'sub' => array(
                    array('name' => '通话详单', 'url' => '?s=CtiStatics/call_history.html'),
                    array('name' => '日结账单', 'url' => '?s=CtiStatics/day_bill.html'),
                )
            ),
            array(
                'name' => '话务统计分析', // 统计分析 - 话务统计分析(话务员通话时长统计)
                'url' => '',
                'sub' => array(
                    array('name' => '策略外呼分析', 'url' => '?s=CtiStatics/seat_call_stat.html'), // 外呼转座席统计
                    array('name' => '座席工作统计', 'url' => '?s=CtiStatics/seat_work_stat.html'),
                    array('name' => '分座席通话时长统计', 'url' => '?s=CtiStatics/seat_calltime_stat.html'),
                    array('name' => '系统话务统计', 'url' => '?s=CtiStatics/system_call_stat.html'),
                    array('name' => '系统呼损统计', 'url' => '?s=CtiStatics/system_call_loss_stat.html'),
                )
            ),
            array(
                'name' => '录音查询', // 统计分析 - 录音查询
                'url' => '',
                'sub' => array(
                    array('name' => '录音查询', 'url' => '?s=CtiStatics/record_list.html'),
                    array('name' => '留言查询', 'url' => '?s=CtiStatics/message_list.html'),
                    array('name' => '满意度查询', 'url' => '?s=CtiStatics/evaluation_list.html'),
                )
            )
        )
    ),
    array(
        'name' => '来话导航', // 模块菜单 - 来话导航
        'url' => '?s=Index/index/mmid/{0}/anavid/45.html',
        'sub' => array(
            array(
                'name' => '来话导航', // 来话导航 - 来话导航
                'url' => '',
                'sub' => array(
                    array('name' => '导航规则', 'url' => '?s=CtiIncome/rule_list.html'),
                    array('name' => '来话黑名单', 'url' => '?s=CtiIncome/black_list.html'),
                )
            ),
        )
    ),
    array(
        'name' => '运行状态', // 模块菜单 - 运行状态
        'url' => '?s=Index/index/mmid/{0}/anavid/49.html',
        'sub' => array(
            array(
                'name' => '运行状态', // 运行状态 - 运行状态
                'url' => '',
                'sub' => array(
                    array('name' => '中继状态', 'url' => '?s=CtiStatus/trunk_status.html'),
                    array('name' => '分机状态', 'url' => '?s=CtiStatus/extension_status.html'),
                    array('name' => '队列状态', 'url' => '?s=CtiStatus/acdno_status.html'),
                    array('name' => '话务员状态', 'url' => '?s=CtiStatus/seat_status.html'),
                    array('name' => '呼叫状态', 'url' => '?s=CtiStatus/call_status.html'),
                    array('name' => '运行状态', 'url' => '?s=CtiStatus/run_status.html'),
                    array('name' => '服务器状态', 'url' => '?s=CtiStatus/sip_server_status.html'),
                    array('name' => '服务器状态', 'url' => '?s=CtiStatus/sip_server_status.html'),
                )
            )
        )
    ),
    array(
        'name' => '话务员平台', // 模块菜单 - 话务员平台
        'url' => '?s=Index/index/mmid/{0}.html',
        'enable' => false,
        'sub' => array(
            array(
                'name' => '系统管理', // 话务员平台 - 系统管理
                'url' => '',
                'sub' => array(
                    array('name' => '操作员管理', 'url' => '?s=CtiIncome/rule_list.html'),
                    array('name' => '角色管理', 'url' => '?s=CtiIncome/black_list.html'),
                    array('name' => '角色授权', 'url' => '?s=CtiIncome/black_list.html'),
                )
            ),
            array(
                'name' => '常用功能', // 话务员平台 - 常用功能
                'url' => '',
                'sub' => array(
                    array('name' => '摘要', 'url' => '?s=CtiIncome/rule_list.html'),
                    array('name' => '消息', 'url' => '?s=CtiIncome/black_list.html'),
                    array('name' => '留言', 'url' => '?s=CtiIncome/black_list.html'),
                    array('name' => '通讯录', 'url' => '?s=CtiIncome/black_list.html'),
                    array('name' => '知识库', 'url' => '?s=CtiIncome/black_list.html'),
                )
            ),
            array(
                'name' => '客户管理', // 话务员平台 - 客户管理
                'url' => '',
                'sub' => array(
                    array('name' => '客户管理', 'url' => '?s=CtiIncome/rule_list.html'),
                    array('name' => '客户接触', 'url' => '?s=CtiIncome/black_list.html'),
                    array('name' => '客户统计', 'url' => '?s=CtiIncome/black_list.html'),
                )
            ),
            array(
                'name' => '工单管理', // 话务员平台 - 工单管理
                'url' => '',
                'sub' => array(
                    array('name' => '工单管理', 'url' => '?s=CtiIncome/rule_list.html'),
                    array('name' => '工单统计', 'url' => '?s=CtiIncome/black_list.html'),
                    array('name' => '录音质检', 'url' => '?s=CtiIncome/black_list.html'),
                )
            ),
            array(
                'name' => '外呼管理', // 话务员平台 - 外呼管理
                'url' => '',
                'sub' => array(
                    array('name' => '个人外呼', 'url' => '?s=CtiIncome/rule_list.html'),
                )
            ),
            array(
                'name' => '订单管理', // 话务员平台 - 订单管理
                'url' => '',
                'sub' => array(
                    array('name' => '订单管理', 'url' => '?s=CtiIncome/rule_list.html'),
                    array('name' => '产品管理', 'url' => '?s=CtiIncome/black_list.html'),
                    array('name' => '订单统计', 'url' => '?s=CtiIncome/black_list.html'),
                )
            ),
        )
    ),
);
